<?php

// API 路由接管
/*$api = app('Dingo\Api\Routing\Router');
// V1 版本，公有接口
$api->version('v1', ['namespace' => 'App\Http\Controllers\Api\V1'], function ($api) {

    $api->post('/loginout', 'MemberCenterController@loginOut');

    $api->get('/homelist', 'HomeController@getHomeList');
    //每日一言
    $api->get('/dayslist', 'HomeController@getAudioDayList');
    //广告
    $api->get('/hotslist', 'HomeController@getBookHotsList');
    //推荐书籍
    $api->get('/bookrecommendlist', 'HomeController@getBookRecommendList');
    //书籍列表
    $api->get('/booklist', 'HomeController@getBookList');
    //已经反馈
    $api->post('/addmessage', 'HomeController@suggestionsStore');
    //书籍分类
    $api->get('/booktypelist', 'BookController@getBookType');
    //书籍详细
    $api->post('/bookdetail', 'BookController@getbookdetail');
    //添加读书改进计划
    $api->post('/bookproject', 'BookController@bookSumUpStore');
    //书籍收藏
    $api->post('/bookcollect', 'BookController@bookCollectStore');
    // 用户注册
    $api->post('/login', 'MemberInfoController@login');
    $api->post('/register', 'MemberInfoController@register');
    $api->get('/checkmobile', 'MemberInfoController@checkMobile');
    $api->post('/checkmobcode', 'MemberInfoController@checkMobCode');
    $api->post('/addmobcode', 'MemberInfoController@addMobCode');

    $api->get('/mob', 'MemberInfoController@testmob');
    //会员详细
    $api->get('/memberdetail', 'MemberCenterController@getMemberInfo');
    //读书改进计划
    $api->get('/membersumup', 'MemberCenterController@getMemBookSumUp');
    //收藏记录
    $api->get('/membercollect', 'MemberCenterController@getMemBookCollect');
    //观看记录
    $api->get('/memberviewlog', 'MemberCenterController@getMemBookViewLog');
    //删除收藏
    $api->post('/memdelcollect', 'MemberCenterController@delMemBookCollect');
    //缴费记录
    $api->get('/memberrenew', 'MemberCenterController@getMemRenew');

    //合伙人详细
    $api->get('/partnerdetail', 'MemberDRPController@memDRPDetail');
    //佣金和提现记录
    $api->get('/commissionlist', 'MemberDRPController@commission');
    //银行接口
    $api->get('/banknamelist', 'MemberDRPController@getBankName');
    //提现账号列表
    $api->get('/paycardlist', 'MemberDRPController@paycard');
    //添加提现账号--支付宝
    $api->post('/addmemalicard', 'MemberDRPController@aliPayCardStore');
    //添加提现账号--银行卡
    $api->post('/addmembankcard', 'MemberDRPController@bankPayCardStore');
    //设置默认提现账号
    $api->post('/updefault', 'MemberDRPController@upPayCardDefault');
    //发送提现短信验证
    $api->post('/addmobpaycode', 'MemberDRPController@addMobCode');
    //发票信息
    $api->post('/invoicelist', 'MemberDRPController@invoiceInfo');
    //提现申请
    $api->post('/drawmoney', 'MemberDRPController@withdrawMoneyStore');
    //我的好友
    $api->get('/friendlist', 'MemberDRPController@memFriendList');
    //推荐好友
    $api->get('/defaulttemp', 'MemberDRPController@defaultTemplate');
    //生成模板
    $api->post('/addtempimg', 'MemberDRPController@temoImgStore');
    //文件上传
    //生成模板
    $api->post('/memimg', 'MemberCenterController@memFace');
    //修改会员资料 http://img.laohoulundao.com/lundao/20161218.mp3
    $api->post('/memupdate', 'MemberCenterController@memberUpdate');

    // 读书会--开始

    //个人
    $api->post('/individual', 'ReadingPartyController@readingPartyIndividualStore');
    //企业
    $api->post('/enterprise', 'ReadingPartyController@readingPartyEnterpriseStore');
    //读书会首页
    $api->get('/homegroup', 'ReadingPartyController@getRreadingPartyList');
    //申请加入读书会
    $api->post('/applygroup', 'ReadingPartyController@reaParStore');
    //所有读书会列表
    $api->get('/groupall', 'ReadingPartyController@readingPartyAll');


    $api->get('/groupallTest', 'ReadingPartyController@readingPartyAllTest');


    //读取所有读书会待审核的会员
    $api->get('/groupmemberall', 'ReadingPartyController@memberReaParAll');
    //单个审核或拒绝
    $api->post('/auditmember', 'ReadingPartyController@auditMember');
    //批量审核或拒绝
    $api->post('/bulkaudit', 'ReadingPartyController@bulkauditMember');
    //退出读书会
    $api->post('/quitgroup', 'ReadingPartyController@quitReadingParty');
    //获取读书会详细
    $api->get('/groupdetail', 'ReadingPartyController@readingPartyEdit');
    //爱好
    $api->post('/individualup', 'ReadingPartyController@readingPartyIndividualUpdate');
    //企业
    $api->post('/enterpriseup', 'ReadingPartyController@readingPartyEnterpriseUpdate');
    //删除
    $api->post('/groupdel', 'ReadingPartyController@readingPartyDelete');

    //查看读书会
    $api->get('/groupview', 'ReadingPartyController@readingPartydetail');
    //改进计划分页
    $api->get('/sumuppage', 'ReadingPartyController@paginateBookSumup');//bug
    $api->get('/sumuppagetwo', 'ReadingPartyController@paginateBookSumupTwo');
    //点赞改进计划
    $api->post('/addzan', 'ReadingPartyController@zanStore');
    //全部评论
    $api->get('/sumupcommentlist', 'ReadingPartyController@sumupComment');
    //全部评论分页
    $api->get('/replypage', 'ReadingPartyController@paginateCommentReply');
    //发表评论
    $api->post('/addreply', 'ReadingPartyController@commentReplyStore');
    //评论回复
    $api->get('/sumupreplylist', 'ReadingPartyController@sumupReply');
    //添加回复
    $api->post('/addsumupreply', 'ReadingPartyController@sumupReplyStore');
    //修改读书会头像
    $api->post('/upgroupface', 'ReadingPartyController@readingPartyFaceup');
    //读取所有群成员
    $api->get('/groupmemberlist', 'ReadingPartyController@groupmemberAll');
    //添加读书会奖励规则
    $api->post('/addaward', 'AwardPlanController@awardPlanStore');
    //读取读书会奖励学习币
    $api->get('/awarddetail', 'AwardPlanController@getAwardPlanDetail');
    //清空学习币
    $api->post('/resetmoney', 'AwardPlanController@resetMoneyAll');

    /**
     * 读书会--结束
     */


    // 2017-04-18 读书会修改

    //个人
   /* $api->post('/modifyindividual', 'ReadingPartyController@modifyReadingPartyIndividualStore');
    //企业
    $api->post('/modifyenterprise', 'ReadingPartyController@modifyreadingPartyEnterpriseStore');
    //读书会首页
    $api->get('/modifyhomegroup', 'ReadingPartyController@modifygetRreadingPartyList');
    //所有读书会列表
    $api->get('/modifygroupall', 'ReadingPartyController@modifyReadingPartyAll');
    //查看读书会详细
    $api->get('/modifygroupview', 'ReadingPartyController@modifyreadingPartydetail');
    //改进计划分页
    $api->get('/modifysumuppage', 'ReadingPartyController@modifypaginateBookSumup');
    //通讯录
    $api->get('/mobilelist', 'ReadingPartyController@memMobileAddresslist');
    //邀请
    $api->post('/modifyauditmember', 'ReadingPartyController@modifyauditMember');
    //往期书籍
    $api->get('/pastbookall', 'ReadingPartyController@pastbookist');
    //赠礼物
    $api->get('/modifygift', 'ReadingPartyController@modifypaginateBookSumupGift');
    //管理员读取所有群成员
    $api->get('/modifygroupmemberAll', 'ReadingPartyController@modifygroupmemberAll');
    // 管理员删除读书会成员
    $api->post('/quitgroupadmin', 'ReadingPartyController@quitReadingPartyadmin');
    //管理员修改群规
    $api->post('/modifyregulation', 'ReadingPartyController@modifyRegulationUpdate');
    //单个更新学习币
    $api->post('/singlesan', 'AwardPlanController@singleSanStore');
    //批量更新学习币
    $api->post('/bluksinglesan', 'AwardPlanController@blukSingleSanStore');
    //学习币获取记录
    $api->get('/moneylog', 'AwardPlanController@getMemberMoneyLog');*/
    /**
     * 2017-04-18 读书会修改--结束
     */

    //首页轮播图接口
//    $api->get('/home/showImages', 'ApiHomeController@showImages');

    /*//获取书籍列表页
    $api->any('/v2/booklist', 'BookController@getBookListNew');
    //获取书籍详情页
    $api->any('/v2/bookdetail', 'BookController@getbookdetailNew');
    //获取热点推荐／自学习社区详情页
    $api->any('/v2/homedetail', 'ApiHomeController@homedetail');

    //热点推荐／自学习社区点赞
    $api->any('/v2/setGood', 'ApiHomeController@setGood');
    //热点推荐／自学习社区收藏
    $api->any('/v2/setFavorite', 'ApiHomeController@setFavorite');
    //热点推荐／自学习社区评论
    $api->any('/v2/setComment', 'ApiHomeController@setComment');
    //显示评论
    $api->any('/v2/getComment', 'ApiHomeController@getComment');*/
//});


